package com.baige.service.user.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户账户
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_account")
public class UserAccount extends Model<UserAccount> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 账户总金额
     */
    @TableField("account_total_amount")
    private BigDecimal accountTotalAmount;
    /**
     * 账户可用金额
     */
    @TableField("account_usable_amount")
    private BigDecimal accountUsableAmount;
    /**
     * 账户冻结金额
     */
    @TableField("account_frozen_amount")
    private BigDecimal accountFrozenAmount;
    /**
     * 账户状态
     */
    private Integer status;
    /**
     * 版本
     */
    private Integer version;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
